<p>
    <span *ngFor="let star of stars; let i = index" class="glyphicon glyphicon-star" 
    [class.glyphicon-star-empty]="star" (click)="clickStar(i)"></span>
    &nbsp;&nbsp;{{rating | number:"1.0-2"}} 星
</p>